package com.lyx.controller;


import com.lyx.entity.User;
import com.lyx.service.Impl.UserServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName MyController
 * @Description: TODO
 * @Author 86152
 * @Date 2022/2/12
 * @Version V1.0
 **/
@Api(value = "生产者进程API接口")
@RestController
public class MyController {


    @Autowired
    UserServiceImpl userService;

    @GetMapping("find")
    @ApiOperation(value="查询所有", notes="查询用户表结果集", produces="application/json")
    public List<User> SelectUserList(){
        return  userService.selectList();
    }

    @GetMapping("text")
    public String page(){
        return  "page";
    }

}
